-- GENERATED SPELL FOR [Lady Szallah] --


function spell0_5343(pUnit, Event) --@Forked Lightning,n/a--
pUnit:FullCastSpellOnTarget(8435,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5343', 2000, 1)
end

function spell1_5343(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5343', 3000, 1)
end

function Sorts_5343(pUnit, Event)
local choix_sorts_5343 = math.random(0, 1)
if choix_sorts_5343 == 0 then
pUnit:RegisterEvent('spell0_5343', 1, 1)
end
if choix_sorts_5343 == 1 then
pUnit:RegisterEvent('spell1_5343', 1, 1)
end
end

function mob5343_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5343', math.random(1500, 3000), 1)
end

function mob5343_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5343_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5343_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5343, 1, 'mob5343_Action')
RegisterUnitEvent(5343, 2, 'mob5343_Leave')
RegisterUnitEvent(5343, 3, 'mob5343_Kill')
RegisterUnitEvent(5343, 4, 'mob5343_Die')
